package models;

public enum Suit {

	CLUB, DIAMOND, SPADE, HEART;
	
	public String toString()
	{
		switch (this)
		{
			case CLUB:
				return "club";
			case DIAMOND:
				return "diamond";
			case SPADE:
				return "spade";
			case HEART:
				return "heart";
			default: 
				return "";
		}
	}
	
	public int toInteger()
	{
		switch (this)
		{
			case CLUB:
				return 1;
			case DIAMOND:
				return 2;
			case SPADE:
				return 3;
			case HEART:
				return 4;
			default: 
				return -1;
		}
	}
	
}
